var obj ={
	
	methods:{
		checkLogin(){
			var token = uni.getStorageSync("token")
			if(token){
				return true
				
			}else{
				uni.showModal({
					title:"登录提示",
					content:"暂未登录,是否前往登录页面",
					success(res){
						console.log(res)
						
						if(res.confirm){
							uni.navigateTo({
								url:"/pages/user/login/login"
							})
						}else{
							uni.showToast({
								title:"已取消"
							})
						}
					}
					
				})
				return false
			}
		},
		
	}
}
export default obj;